package com.ssm.admin.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssm.common.utils.PageUtils;
import com.ssm.common.utils.Query;

import com.ssm.admin.dao.SsmAdtypeDao;
import com.ssm.admin.entity.SsmAdtypeEntity;
import com.ssm.admin.service.SsmAdtypeService;


@Service("ssmAdtypeService")
public class SsmAdtypeServiceImpl extends ServiceImpl<SsmAdtypeDao, SsmAdtypeEntity> implements SsmAdtypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SsmAdtypeEntity> page = this.page(
                new Query<SsmAdtypeEntity>().getPage(params),
                new QueryWrapper<SsmAdtypeEntity>()
        );

        return new PageUtils(page);
    }

}